answersLogoWhite

0


Best Answer

<select>

<option value="Volvo">Volvo</option>

<option value="Saab">Saab</option>

<option value="mercedes">Mercedes</option>

<option value="Audi">Audi</option>

</select>

User Avatar

Norval Lind

Lvl 10
2y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Put this in the body of an HTML document, and it will display a drop-down list with the options of "Apple", "Banana", and "Grape". (The below complies with all HTML and XHTML Document Declaration Types) ---- <form action=""> <select name="fruit"> <option value="apple">Apple</option> <option value="banana">Banana</option> <option value="grape">Grape</option> </select> </form>

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

<select>

<option value="volvo">Volvo</option>

<option value="saab">Saab</option>

<option value="mercedes">Mercedes</option>

<option value="audi">Audi</option>

</select>

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

This HTML code produces a dropdown:



See related link on HTML tutorial, it also lets you try it out in your browser.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

To make a drop-down menu in HTML, we use the SELECT tag.

<select>

<option value="1">Option 1</option>

<option value="2">Option 2</option>

</select>

The SELECT tag is only valid inside a FORM element. Normally, you'll want to give the select element an id so that you can reference it when processing the form.

<select id="mySelect">

You also have to have the value attribute on the options. The value attribute holds the value that is actually passed to the form processor. The Text within the option tag is the text that your user will be presented with. This is because, often, it makes sense to use a value (like a database id) but display something else (like the name of the credit card company.)

If you need to have a default value selected, you can add the SELECTED attribute to the OPTION tag that represents the value you want.

<option value="0" selected="selected">Default</option>

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Drop down can be created in HTML easily. The <select> tag gives the drop-down with <options>.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

There is no HTML code that will create a drop menu. You need to use JavaScript, PHP, or some other programming language to do that.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Red Blue Green

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the correct HTML for making a drop-down list?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible to call a stored procedure from java script function and populate an aspnet dropdown list HTML control using the value returned by the SP?

No, a stored procedure can not be called from Javascript. A dropdown list however can be populated using a stored procedure.


What is the correct HTML tag for making a list that lists things with numbers?

The correct HTML tag to use when making a list of things that will be numbered is the orderer list element.The ordered list element will automatically number the list items it contains. For instance:The first itemThe second itemThe third item And the code will render in a fashion similar to this:The first itemThe second itemThe third itemYou can change the way an ordered list is numbered using CSS properties.


How do you decrease height of dropdown list in aspnet?

You can refer the following code to decrease the height of a DropDownList.Also you can use CSS style sheet or Theme option to make align the HTML elements easily.


How can you limit the size of dropdown list using aspnet if there is 20 items and you want to view only ten items rest is viewed by scrolling?

In Dropdown list, you can see one item at a time only. If you are asking how to limit the number of drop down rows to 10, you can't. The ASP .NET DropDownList renders as an HTML Select and it displays all items when the dropdown button is clicked. However, if you are talking about list box then , Increase or Decrease the height of the listbox so that it shows more or less items... Use stylesheets...


How do I put a dropdown list inside a prompt box using Javascript?

not posiible


What is a list in HTML?

A list in HTML defines a collection of items. List can be ordered (OL) or Unordered (UL).


Which item displays as a dropdown but does not allow for the enduser to edit the choice selection?

List Box


Where can you see the list of the 2009 Emmy Awards winners?

You can get them here - http://www.emmys.com/nominations Use the dropdown to select the categories.


A list of rainforests?

www.a_to_zrainforestlistings.com/list1.html


Where can one find a list of WYSIWYG HTML editors?

There are many places where one can find a list of suitable WYSIWYG HTML editors. This includes books dedicated to HTML as well as blogs and forum posts.


Which of the list style types in HTML markup is the square style?

In HTML markup the square in a List is:In CSS the CSS Sheet would include this for a square List item:ul.square {list-style-type: square;}


List of color codes in HTML?

Link below